import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import(/* webpackChunkName: "login" */ './views/login/login'),
      meta:{
        index:1
      }
    },
    {
      path: '/',
      name: 'main',
      component: () => import(/* webpackChunkName: "main" */ './views/main'),
      meta:{
        index:3
      },
      children:[
        {
          path: '',
          name: 'home',
          component: () => import(/* webpackChunkName: "home" */ './views/home'),
        },
        {
          path: '/release',
          name: 'release',
          component: () => import(/* webpackChunkName: "release" */ './views/release'),
        },
        {
          path: '/order',
          name: 'order',
          component: () => import(/* webpackChunkName: "order" */ './views/order'),
        },
        {
          path: '/my',
          name: 'my',
          component: () => import(/* webpackChunkName: "my" */ './views/my'),
        },
      ]
    },
    //网点
    {
      path: '/shop',
      name: 'shop',
      component: () => import(/* webpackChunkName: "shop" */ './views/shop'),
      meta:{
        index:10
      }
    },
    //我的账单
    {
      path: '/bill',
      name: 'bill',
      component: () => import(/* webpackChunkName: "bill" */ './views/bill'),
      meta:{
        index:10
      }
    },
    //我的卡劵
    {
      path: '/card',
      name: 'card',
      component: () => import(/* webpackChunkName: "card" */ './views/card'),
      meta:{
        index:10
      }
    },
    //余额
    {
      path: '/balance',
      name: 'balance',
      component: () => import(/* webpackChunkName: "balance" */ './views/balance'),
      meta:{
        index:3
      }
    },
    //邀请好友
    {
      path: '/invitation',
      name: 'invitation',
      component: () => import(/* webpackChunkName: "invitation" */ './views/invitation'),
      meta:{
        index:3
      }
    },
    //邀请好友记录
    {
      path: '/invitation-record',
      name: 'invitation-record',
      component: () => import(/* webpackChunkName: "invitation" */ './views/invitation/record'),
      meta:{
        index:4
      }
    },
    //我的客服
    {
      path: '/service',
      name: 'service',
      component: () => import(/* webpackChunkName: "service" */ './views/service'),
      meta:{
        index:3
      }
    },
    //关于我们
    {
      path: '/about',
      name: 'about',
      component: () => import(/* webpackChunkName: "about" */ './views/about'),
      meta:{
        index:3
      }
    },
    //手机登录
    {
      path: '/login',
      name: 'login',
      component: () => import(/* webpackChunkName: "login" */ './views/login/login'),
      meta:{
        index:1
      }
    },
    //密码登录
		{
      path: '/pwdlogin',
      name: 'pwdlogin',
      component: () => import(/* webpackChunkName: "pwdlogin" */ './views/login/pwdlogin'),
      meta:{
        index:1
      }
    },
    //设置登录密码
		{
      path: '/setpwd',
      name: 'setpwd',
      component: () => import(/* webpackChunkName: "setpwd" */ './views/login/setpwd'),
      meta:{
        index:1
      }
    },
    //安全中心
		{
      path: '/security',
      name: 'security',
      component: () => import(/* webpackChunkName: "security" */ './views/security'),
      meta:{
        index:1
      }
    },
    //转账
		{
      path: '/transfer',
      name: 'transfer',
      component: () => import(/* webpackChunkName: "transfer" */ './views/transfer'),
      meta:{
        index:1
      }
    },
    {
      path: '/country',
      name: 'country',
      component: () => import(/* webpackChunkName: "country" */ './views/login/country'),
      meta:{
        index:2
      }
    },
    //编辑资料
    {
      path: '/edit',
      name: 'edit',
      component: () => import(/* webpackChunkName: "edit" */ './views/edit'),
      meta:{
        index:3
      }
    },
    //个人资料
    {
      path: '/user',
      name: 'user',
      component: () => import(/* webpackChunkName: "user" */ './views/user'),
      meta:{
        index:5
      }
    },
    //充值
		{
      path: '/recharge',
      name: 'recharge',
      component: () => import(/* webpackChunkName: "recharge" */ './views/recharge'),
      meta:{
        index:5
      }
    },
    //提现
		{
      path: '/cash',
      name: 'cash',
      component: () => import(/* webpackChunkName: "cash" */ './views/cash'),
      meta:{
        index:5
      }
    },
    //下载
    {
      path: '/down',
      name: 'down',
      component: () => import(/* webpackChunkName: "down" */ './views/down'),
      meta:{
        index:5
      }
    },
    //绑定邀请码
    {
      path: '/bindcode',
      name: 'bindcode',
      component: () => import(/* webpackChunkName: "bindcode" */ './views/bindcode'),
      meta:{
        index:5
      }
    },
    //启动页
		{
      path: '/start',
      name: 'start',
      component: () => import(/* webpackChunkName: "start" */ './views/startup'),
      meta:{
        index:5
      }
    },
    //朋友
		{
      path: '/friends',
      name: 'friends',
      component: () => import(/* webpackChunkName: "start" */ './views/friends'),
      meta:{
        index:5
      }
    },
    //添加朋友
		{
      path: '/addfriends',
      name: 'addfriends',
      component: () => import(/* webpackChunkName: "addfriends" */ './views/friends/add'),
      meta:{
        index:5
      }
    },
    //新朋友
		{
      path: '/newfriends',
      name: 'newfriends',
      component: () => import(/* webpackChunkName: "newfriends" */ './views/friends/new'),
      meta:{
        index:5
      }
    },
    //朋友信息
		{
      path: '/userinfo',
      name: 'userinfo',
      component: () => import(/* webpackChunkName: "userinfo" */ './views/friends/userinfo'),
      meta:{
        index:5
      }
    },
    //通讯录
		{
      path: '/mail-list',
      name: 'mail-list',
      component: () => import(/* webpackChunkName: "userinfo" */ './views/friends/mail-list'),
      meta:{
        index:5
      }
    },
    //聊天
		{
      path: '/chat',
      name: 'chat',
      component: () => import(/* webpackChunkName: "chat" */ './views/friends/chat'),
      meta:{
        index:5
      }
    },
  ]
})
